package com.studycloud.service;

import com.studyclud.entity.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * 订单接口服务层
 * @author JP
 */
public interface PaymentService
{
    /**
     * 新增订单
     * @param payment
     * @return int
     */
    int create(Payment payment);

    /**
     * 根据id查询
     * @param id
     * @return Payment
     */
    Payment getPaymenById(@Param("id") Long id);
}
